Skip to content

Conversation

vgreb
Copy link
Contributor

@vgreb vgreb commented Jul 30, 2025

Migration de l'administration de articles sous Symfony.
La nouvelle url dans le menu est /admin/site/articles

J'ai volontairement laissé les sources legacy. Si la MR est validée, je ferais une seconde MR pour les supprimer.

@vgreb vgreb force-pushed the refacto/articles branch 4 times, most recently from 9203f65 to 767d4a9 Compare July 31, 2025 05:55
@@ -38,3 +38,9 @@
</div>
{%- endif -%}
{%- endblock datetime_widget -%}

{%- block textarea_widget -%}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il est peut être plus judicieux d'utiliser la macro wysiwyg() présente dans templates/admin/event/form.html.twig, quite à la déplacer dans le form_theme_admin.html.twig.
Qu'en pensez-vous ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si ça rend le code plus clair pourquoi pas.

Attention par contre à si ça modifie beaucoup de fichiers, ce sera mieux de faire ça dans une PR séparée.

@vgreb vgreb marked this pull request as ready for review July 31, 2025 06:07
@vgreb vgreb force-pushed the refacto/articles branch from 767d4a9 to 9b338cd Compare August 1, 2025 18:45
@vgreb vgreb changed the title refacto: migration de l'administrations des articles sous Symfony refacto: migration de l'administration des articles sous Symfony Aug 1, 2025
@vgreb vgreb force-pushed the refacto/articles branch from 9b338cd to fa7f862 Compare August 16, 2025 17:29
@vgreb vgreb force-pushed the refacto/articles branch from fa7f862 to 78ea080 Compare August 17, 2025 13:17
@Mopolo
Copy link
Contributor

Mopolo commented Sep 8, 2025

J'ai checkout la branche en local et trouvé un soucis.

Quand j'ouvre un article existant, le markdown est transformé en HTML dans l'éditeur. Les boutons de l'éditeur par contre font bien du markdown, mais il n'est pas rendu en front.

Sur la prod :
image

Le même article avec ta branche :
image

Si besoin je peux te fournir du SQL de prod pour cet article, dis moi sur Slack.

'label' => 'Chapeau',
'required' => false,
'attr' => [
'maxlength' => 255,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En base actuellement le chapeau le plus long est de 836 caractères.

La plupart des anciens articles ont entre 200 et 500 caractères et ne sont donc plus modifiables.

On peut se dire 1000 pour être tranquilles.

@Mopolo
Copy link
Contributor

Mopolo commented Sep 8, 2025

Je viens de vérifier et en prod il y a 768 anciens articles en HTML.

Les plus récents en markdown sont environ 200.

Je serais d'avis de pas s'embêter à gérer la modification des anciens, donc de bien interpréter les articles comme du markdown.

@agallou et/ou @stakovicz ça vous parait raisonnable ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants